<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" src="../../js/class/jquery-3.0.0.min.js"></script>
	</head>
	<body>
		<div id="partContainer">
			
		</div>
		
		
		<script type="text/javascript">
			var btnEle = document.createElement("button");
			var btnEle2 = document.createElement("button");
			var partEle = document.getElementById("partContainer");
			btnEle.innerHTML = "提交";
			btnEle2.innerHTML = "提交2";
			btnEle.type = "button";
			btnEle2.type = "button";
			partEle.addEventListener("DOMNodeInserted",function(){
				//注销时间，避免重复触发
				partEle.removeEventListener('DOMNodeInserted',arguments.callee,false);
				console.log("按钮加载完成！");
			},false)
			$("#partContainer").ready(function(){
				console.log("Jquery按钮加载完成！");
			})
			partEle.appendChild(btnEle);
			console.log("js加载完成发！")
			setTimeout(function(){
				console.log("定时器执行")
				partEle.appendChild(btnEle2);
			},1000)
			
		</script>
	</body>
</html>